package com.rainbow.micro.example.feign.remote;

import com.rainbow.micro.example.dto.req.RoleStoreReq;
import org.springframework.cloud.openfeign.FeignClient;
import com.rainbow.common.core.entity.Result;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
* role服务接口
* 
* @author rainbow
* 邮箱  1335157415@qq.com
* @date 2022-05-05 13:03:19
*/
@FeignClient(name = "example")
public interface RoleClient{


    /**
    * 保存数据
    * @param entity 参数
    * @return
    */
    @PostMapping("role/insert")
    Result insert(@RequestBody RoleStoreReq entity);


    /**
    * 更新数据
    * @param entity 参数
    * @return
    */
    @PostMapping("role/update")
    Result update(@RequestBody RoleStoreReq entity);


}
